package homewoek1月4号.demo3.d2;

import java.util.Random;

public class Demo1 {
    public static void main(String[] args) {
        int sum=0;
        Random r = new Random();
        int a = r.nextInt(499)+2;
        for (int i = 0; i <=a ; i++) {
            if (a%2==0){
                sum+=a;
            }
        }
        System.out.println(sum);
    }
}
